<?php

namespace app\admin\logic\permission;

use app\admin\model\permission\Admin;
use app\logic\BaseLogic;
use DI\Attribute\Inject;
use support\Request;

class AdminLogic extends BaseLogic
{
    #[Inject]
    protected Admin $admin;
    public function getAdmin( Request $request ): array
    {
        $admin = $this->admin->order(['create_time'=>'desc']);
        return $this->toLists($admin , $request);
    }
}